<?php
/**
 * Created by PhpStorm.
 * User: qingyun
 * Date: 2019/5/15
 * Time: 8:46 PM
 */
namespace app\admin\controller;

use think\Controller;

class Base extends Controller{

    public function __construct()
    {
        parent::__construct();

        if (!session('adminUserInfo')){
            $this->error('您需要先登录');
        }

    }

    public function logout(){

        session('adminUserInfo',null);
        $this->redirect('admin/Sign/login');
    }

}







